package onlinecalsys.client.controller;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import onlinecalsys.server.objects.Appointment;

public interface ClientController extends Remote {
	
	public final static String URL = "rmi://127.0.0.1/calsyscontroller";
	
	public void onlineNow() throws RemoteException;
	
	boolean addAppointment(Appointment app)throws RemoteException;

	ArrayList<ArrayList<String>> getAppointments(String date, String username) throws RemoteException;


	boolean deleteAppointment(int appointmentId, String username) throws RemoteException;

	boolean usernameChecking(String username, String password) throws RemoteException;
	
	boolean saveNote(String note,String username) throws RemoteException;
	String getNote(String username) throws RemoteException;

	boolean shareAppointment(String username, int id, String shareWithUser) throws RemoteException;

	ArrayList<ArrayList<String>> getSharedAppointments(String username) throws RemoteException;
	String getUsername() throws RemoteException;

	boolean createNewUser(String username, String password) throws RemoteException;

	

}
